//
//  DataOrderSummaryResult.swift
//  JiaoZiTaxi
//
//  Created by Hu Gang on 2022/12/9.
//

import Foundation

// MARK: - Datum
struct DataOrderSummaryResult: Codable {
    let id: String
    let outTradeNo: JSONNull?
    let price, status, customerOpenid: String
    let customerName: JSONNull?
    let startTime, waitTime: String
    let startAddress, linkman, linkphone, endAddress: JSONNull?
    let endTime, detectionID, driverOpenid: String
    let driverName, driverPhone, driverCode, customerPhone: JSONNull?
    let chepai: String?
    let mydistance: String
    let mytime: JSONNull?
    let payTime, cash, orderType: String

    enum CodingKeys: String, CodingKey {
        case id
        case outTradeNo = "out_trade_no"
        case price, status
        case customerOpenid = "customer_openid"
        case customerName = "customer_name"
        case startTime = "start_time"
        case waitTime = "wait_time"
        case startAddress = "start_address"
        case linkman, linkphone
        case endAddress = "end_address"
        case endTime = "end_time"
        case detectionID = "detection_id"
        case driverOpenid = "driver_openid"
        case driverName = "driver_name"
        case driverPhone = "driver_phone"
        case driverCode = "driver_code"
        case customerPhone = "customer_phone"
        case chepai, mydistance, mytime
        case payTime = "pay_time"
        case cash
        case orderType = "order_type"
    }
}
